package com.gopay.remote.scs;

import com.gopay.common.domain.cert.MsgGopaySignCert;

/**
 * @MsgGopaySignCertRemoteService
 * @AUTHOR LIUYONG
 * @2016/9/8 16:25 www.gopay.com.cn Inc.All rights reserved.
 */
public interface MsgGopaySignCertRemoteService {

    /**
     * 申请证书
     * @param certAlias
     * @param userEmail
     * @param password
     * @param operId
     */
    public MsgGopaySignCert enrollCertAA(String certAlias, String userEmail, String password, String operId);

    /**
     * 吊销证书
     * @param sn 数字证书序列号
     */
    public boolean revokeCert(String sn);

    /**
     * 签名
     * @param plain 原文
     * @return
     */
    public String sign(String plain);
}
